package com.dingreading.cloud.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  实体类。
 *
 * @author Administrator
 * @since 2025-01-03
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("nj_ticket_order")
public class NjTicketOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 添加时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    private String buyerId;

    private String corpName;

    private String name;

    private String openid;

    private String orderCode;

    private String payAmount;

    /**
     * 支付回调时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payCallbackTime;

    private String payChannel;

    private Integer payStatus;

    private String payStatusName;

    private String payTime;

    private String payType;

    private String tradeNo;

    private String tradeType;

    private String userName;

    private String userPhone;

    private String userUid;

    private String year;

    private String from;

}
